import React from "react";
import "./header.css";

function Header(props) {
  const { openInput } = props;
  return (
    <div className='header'>
      <h1>事件待办</h1>
      <span className='icon' onClick={openInput}>
        &#43;
      </span>
    </div>
  );
}

export default Header;
